Integrand size = 25, antiderivative size = 277 \[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\frac {2 \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 a}{a+b}\right )}{3 \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {8 b \sqrt {\cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{3 \left (a^2-b^2\right )^2 d \sqrt {\frac {b+a \cos (c+d x)}{a+b}}}-\frac {2 a^2 \sin (c+d x)}{3 b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \sec (c+d x))^{3/2}}+\frac {2 a \left (a^2-5 b^2\right ) \sin (c+d x)}{3 b \left (a^2-b^2\right )^2 d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}} \]
[Out]
Time = 0.97 (sec) , antiderivative size = 277, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {4349, 3930, 4185, 4120, 3941, 2734, 2732, 3943, 2742, 2740} \[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=-\frac {2 a^2 \sin (c+d x)}{3 b d \left (a^2-b^2\right ) \sqrt {\cos (c+d x)} (a+b \sec (c+d x))^{3/2}}+\frac {2 a \left (a^2-5 b^2\right ) \sin (c+d x)}{3 b d \left (a^2-b^2\right )^2 \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {2 \sqrt {\frac {a \cos (c+d x)+b}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 a}{a+b}\right )}{3 d \left (a^2-b^2\right ) \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {8 b \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{3 d \left (a^2-b^2\right )^2 \sqrt {\frac {a \cos (c+d x)+b}{a+b}}} \]
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 3930
Rule 3941
Rule 3943
Rule 4120
Rule 4185
Rule 4349
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec ^{\frac {5}{2}}(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx \\ & = -\frac {2 a^2 \sin (c+d x)}{3 b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \sec (c+d x))^{3/2}}-\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-\frac {a^2}{2}-\frac {3}{2} a b \sec (c+d x)-\frac {1}{2} \left (a^2-3 b^2\right ) \sec ^2(c+d x)}{\sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{3/2}} \, dx}{3 b \left (a^2-b^2\right )} \\ & = -\frac {2 a^2 \sin (c+d x)}{3 b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \sec (c+d x))^{3/2}}+\frac {2 a \left (a^2-5 b^2\right ) \sin (c+d x)}{3 b \left (a^2-b^2\right )^2 d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {\left (4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {a^2 b^2+\frac {1}{4} a b \left (a^2+3 b^2\right ) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{3 a b \left (a^2-b^2\right )^2} \\ & = -\frac {2 a^2 \sin (c+d x)}{3 b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \sec (c+d x))^{3/2}}+\frac {2 a \left (a^2-5 b^2\right ) \sin (c+d x)}{3 b \left (a^2-b^2\right )^2 d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {\left (4 b \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx}{3 \left (a^2-b^2\right )^2}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 \left (a^2-b^2\right )} \\ & = -\frac {2 a^2 \sin (c+d x)}{3 b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \sec (c+d x))^{3/2}}+\frac {2 a \left (a^2-5 b^2\right ) \sin (c+d x)}{3 b \left (a^2-b^2\right )^2 d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {\sqrt {b+a \cos (c+d x)} \int \frac {1}{\sqrt {b+a \cos (c+d x)}} \, dx}{3 \left (a^2-b^2\right ) \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {\left (4 b \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {b+a \cos (c+d x)} \, dx}{3 \left (a^2-b^2\right )^2 \sqrt {b+a \cos (c+d x)}} \\ & = -\frac {2 a^2 \sin (c+d x)}{3 b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \sec (c+d x))^{3/2}}+\frac {2 a \left (a^2-5 b^2\right ) \sin (c+d x)}{3 b \left (a^2-b^2\right )^2 d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {\sqrt {\frac {b+a \cos (c+d x)}{a+b}} \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{3 \left (a^2-b^2\right ) \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {\left (4 b \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}} \, dx}{3 \left (a^2-b^2\right )^2 \sqrt {\frac {b+a \cos (c+d x)}{a+b}}} \\ & = \frac {2 \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 a}{a+b}\right )}{3 \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {8 b \sqrt {\cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{3 \left (a^2-b^2\right )^2 d \sqrt {\frac {b+a \cos (c+d x)}{a+b}}}-\frac {2 a^2 \sin (c+d x)}{3 b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \sec (c+d x))^{3/2}}+\frac {2 a \left (a^2-5 b^2\right ) \sin (c+d x)}{3 b \left (a^2-b^2\right )^2 d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 8.71 (sec) , antiderivative size = 311, normalized size of antiderivative = 1.12 \[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\frac {2 (b+a \cos (c+d x))^2 \left (\frac {a \left (a^2-5 b^2-4 a b \cos (c+d x)\right ) \sin (c+d x)}{b+a \cos (c+d x)}+\frac {\sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x)} \left (4 i b (a+b) E\left (i \text {arcsinh}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right ) \sqrt {\frac {(b+a \cos (c+d x)) \sec ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}-i \left (a^2+4 a b+3 b^2\right ) \operatorname {EllipticF}\left (i \text {arcsinh}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right ),\frac {-a+b}{a+b}\right ) \sqrt {\frac {(b+a \cos (c+d x)) \sec ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}+4 b (b+a \cos (c+d x)) \sqrt {\sec ^2\left (\frac {1}{2} (c+d x)\right )} \tan \left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {\sec (c+d x)}}\right )}{3 \left (a^2-b^2\right )^2 d \cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(1998\) vs. \(2(307)=614\).
Time = 6.17 (sec) , antiderivative size = 1999, normalized size of antiderivative = 7.22
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.12 (sec) , antiderivative size = 709, normalized size of antiderivative = 2.56 \[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=-\frac {6 \, {\left (4 \, a^{3} b \cos \left (d x + c\right ) - a^{4} + 5 \, a^{2} b^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - {\left (\sqrt {2} {\left (-3 i \, a^{4} - i \, a^{2} b^{2}\right )} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} {\left (3 i \, a^{3} b + i \, a b^{3}\right )} \cos \left (d x + c\right ) + \sqrt {2} {\left (-3 i \, a^{2} b^{2} - i \, b^{4}\right )}\right )} \sqrt {a} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) + 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right ) - {\left (\sqrt {2} {\left (3 i \, a^{4} + i \, a^{2} b^{2}\right )} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} {\left (-3 i \, a^{3} b - i \, a b^{3}\right )} \cos \left (d x + c\right ) + \sqrt {2} {\left (3 i \, a^{2} b^{2} + i \, b^{4}\right )}\right )} \sqrt {a} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) - 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right ) + 12 \, {\left (-i \, \sqrt {2} a^{3} b \cos \left (d x + c\right )^{2} - 2 i \, \sqrt {2} a^{2} b^{2} \cos \left (d x + c\right ) - i \, \sqrt {2} a b^{3}\right )} \sqrt {a} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) + 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right )\right ) + 12 \, {\left (i \, \sqrt {2} a^{3} b \cos \left (d x + c\right )^{2} + 2 i \, \sqrt {2} a^{2} b^{2} \cos \left (d x + c\right ) + i \, \sqrt {2} a b^{3}\right )} \sqrt {a} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) - 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right )\right )}{9 \, {\left ({\left (a^{7} - 2 \, a^{5} b^{2} + a^{3} b^{4}\right )} d \cos \left (d x + c\right )^{2} + 2 \, {\left (a^{6} b - 2 \, a^{4} b^{3} + a^{2} b^{5}\right )} d \cos \left (d x + c\right ) + {\left (a^{5} b^{2} - 2 \, a^{3} b^{4} + a b^{6}\right )} d\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\int { \frac {1}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \cos \left (d x + c\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\int { \frac {1}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \cos \left (d x + c\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\int \frac {1}{{\cos \left (c+d\,x\right )}^{5/2}\,{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
[In]
[Out]